﻿using System.Xml.Serialization;
using Yun.Domain;

namespace Yun.Marketing
{
    public class RedEnvelopeDistributionDetail
    {
        /// <summary>
        /// 红包ID
        /// </summary>
        [XmlElement("red_envelope_id")]
        public int RedEnvelopeId { get; set; }

        /// <summary>
        /// 发放人信息
        /// </summary>
        [XmlElement("issuing_user_info")]
        public UserProfile IssuingUserInfo { get; set; }

        /// <summary>
        /// 领取者
        /// </summary>
        [XmlElement("receiver_info")]
        public UserProfile ReceiverInfo { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [XmlElement("amount_of_money")]
        public int AmountOfMoney { get; set; }

        /// <summary>
        /// 领取者
        /// </summary>
        [XmlElement("receiver_id")]
        public int ReceiverId { get; set; }

        /// <summary>
        /// 领取时间
        /// </summary>
        [XmlElement("receive_time")]
        public string ReceiveTime { get; set; }


        /// <summary>
        /// 红包资金类型
        /// </summary>
        [XmlElement("red_envelope_funds")]
        public int RedEnvelopeFunds { get; set; }
    }
}
